package com.suxiaoxiao.springbootlearn.spring.framework.enable.configuration.importEntity;

import com.suxiaoxiao.springbootlearn.spring.framework.enable.configuration.entity.Yellow;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 用配置的方式导入 BEAN
 */
@Configuration
public class ColorRegistrarConfiguration {

    @Bean
    public Yellow yellow() {
        return new Yellow();
    }

}
